package jym.tan.tmdb.bean;

import java.io.Serializable;

import com.google.gson.annotations.SerializedName;

/**
 * The Class Release.
 * <p>
 * 	The properties are:
 * 	<ul>
 * 		<li>iso_3166_1</li>
 * 		<li>certification</li>
 * 		<li>release_date</li>
 * 	</ul>
 * </p>	 
 * @author Tanmoy  
 */
public class Release extends Base implements Serializable {

	private static final long serialVersionUID = -4515291486249394511L;

	@SerializedName("certification")
	private String certification;
	
	@SerializedName("release_date")
	private String releaseDate;
	
	/**
	 * Default Constructor.
	 */
	public Release() {
		
	}

	/**
	 * Gets the certification.
	 *
	 * @return 
	 * 		The certification
	 */
	public String getCertification() {
		return certification;
	}

	/**
	 * Sets the certification.
	 *
	 * @param certification 
	 * 		The new certification
	 */
	public void setCertification(String certification) {
		this.certification = certification;
	}

	/**
	 * Gets the release date.
	 *
	 * @return 
	 * 		The release date
	 */
	public String getReleaseDate() {
		return releaseDate;
	}

	/**
	 * Sets the release date.
	 *
	 * @param releaseDate 
	 * 		The new release date
	 */
	public void setReleaseDate(String releaseDate) {
		this.releaseDate = releaseDate;
	}
	
	/* (non-Javadoc)
	 * @see jym.tan.tmdb.bean.Base#toString()
	 */
	@Override
	public String toString() {		
		StringBuilder builder = new StringBuilder();
		builder.append("{").
			append("iso_3166_1:").append("\"").append(iso_3166_1).append("\"").
			append(",").
			append("certification:").append("\"").append(certification).append("\"").
			append(",").
			append("release_date:").append("\"").append(releaseDate).append("\"").
			append("}");
		return builder.toString();
	}
}
